module.exports = app => {
    const { STRING, INTEGER, DATE, DECIMAL } = app.Sequelize;

    const TotalEnter2Detail = app.model.define('total_enter2_detail', {
        id: {
            type: INTEGER,  //整型
            primaryKey: true,  //主键
            autoIncrement: true,  //自增
        },
        index: INTEGER,
        value: INTEGER,
        amount: STRING(255),
        result: INTEGER,
        is_z: INTEGER,
        enter_id: INTEGER,
        input: STRING(255),
    })
    return TotalEnter2Detail
}